<template>
  <div class="document-rag-container">
    <div class="page-header">
      <h2>文档RAG管理</h2>
      <p class="page-description">管理文档检索增强生成功能</p>
    </div>

    <div class="content-placeholder">
      <el-card class="placeholder-card">
        <div class="placeholder-content">
          <el-icon class="placeholder-icon" size="64">
            <Document />
          </el-icon>
          <h3>文档RAG功能</h3>
          <p>文档RAG管理功能正在开发中...</p>
          <p class="feature-desc">
            此功能将支持：
          </p>
          <ul class="feature-list">
            <li>文档上传与解析</li>
            <li>文档向量化存储</li>
            <li>智能文档检索</li>
            <li>文档片段管理</li>
            <li>RAG问答配置</li>
          </ul>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script setup lang="ts">
import { Document } from '@element-plus/icons-vue'
</script>

<style scoped>
.document-rag-container {
  padding: 20px;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header h2 {
  margin: 0 0 8px 0;
  color: #303133;
  font-size: 24px;
  font-weight: 600;
}

.page-description {
  margin: 0;
  color: #606266;
  font-size: 14px;
}

.content-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.placeholder-card {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.placeholder-content {
  padding: 40px 20px;
}

.placeholder-icon {
  color: #909399;
  margin-bottom: 20px;
}

.placeholder-content h3 {
  margin: 0 0 16px 0;
  color: #303133;
  font-size: 20px;
  font-weight: 600;
}

.placeholder-content p {
  margin: 0 0 16px 0;
  color: #606266;
  font-size: 14px;
  line-height: 1.6;
}

.feature-desc {
  margin-top: 24px !important;
  font-weight: 500;
  color: #409eff;
}

.feature-list {
  text-align: left;
  max-width: 280px;
  margin: 16px auto 0;
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: #606266;
  font-size: 14px;
  line-height: 1.5;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: #409eff;
  font-weight: bold;
}

@media (max-width: 768px) {
  .document-rag-container {
    padding: 10px;
  }
  
  .placeholder-content {
    padding: 30px 15px;
  }
  
  .placeholder-content h3 {
    font-size: 18px;
  }
  
  .feature-list {
    max-width: 100%;
  }
}
</style> 